home *** CD-ROM | disk | FTP | other *** search
/ Executor 2.0 / executorv2.0.iso / pc / dos / extra / source / browser / browser.hqx / Browser / iconcontrol ƒ / iconcontrol.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-05  |  1.2 KB  |  70 lines

  1. #if !defined(_ICONCONTROL_H_)
  2. #define _ICONCONTROL_H_
  3.  
  4. #include <MacHeaders>
  5.  
  6. #define INTEXT                12
  7. #define INSELECTEDICON        13
  8. #define ICONSIZE            32
  9. #define ICSSIZE                16
  10. #define FONTSIZE            9
  11. #define SIZETEXTLEFT        200
  12. #define DATETEXTLEFT        240
  13. #define LISTRIGHT            500
  14.  
  15. typedef struct
  16.   {
  17.     Rect iconrect;
  18.     Rect textrect;
  19.     short x;
  20.     short y;
  21.   }
  22. icondraginfo;
  23.  
  24. typedef struct _iconfam
  25.   {
  26.     Handle icnsh;
  27.     Handle icssh;
  28.     Handle icl8;
  29.     Handle icl4;
  30.     Handle ics8;
  31.     Handle ics4;
  32.   }
  33. icontableentry, **icn_sharp_hand;
  34.  
  35. enum views
  36.   {
  37.     ICONVIEW,
  38.     ICSVIEW,
  39.     LISTVIEW
  40.   };
  41.  
  42. typedef struct
  43.   {
  44.     char **path;
  45.     icontableentry **iconfam;
  46.     long ioparid;
  47.     long filenum;
  48.     short vrefnum;
  49.     short selected;
  50.     short action;
  51.     short view;
  52.     long moddate;
  53.     long size;
  54.     OSType sig;
  55.     OSType type;
  56.   }
  57. item;
  58.  
  59. #define ICON_VREF(c)    ((*(item **) (*(c))->contrlData)->vrefnum)
  60.  
  61. #define ICON_PARENT_ID(c)    ((*(item **) (*(c))->contrlData)->ioparid)
  62.  
  63. #define ICON_FILENUM(c)    ((*(item **) (*(c))->contrlData)->filenum)
  64.  
  65. #define ICON_TITLE(c)    ((*(c))->contrlTitle)
  66.  
  67. extern unsigned char hiliteMode:0x938;
  68. extern GDHandle theGDevice:0xCC8;
  69.  
  70. #endif